html, body {
    min-width: 1200px !important;
}

:root {
    --jasper: #222D32;
    --black: #1d2124;
    --gray: #aaa;
}

.text-black {
    color: var(--black);
}

.text-gray {
    color: var(--gray);
}

.bg-black {
    background: var(--black);
}

.bg-jasper {
    background: var(--jasper);
}

.bg-gray {
    background: var(--gray);
}

.navbar {
    background: #009966;
    padding: 0.36rem;
    border-bottom: 1px solid rgba(0, 0, 0, .125);

    .navbar-brand {
        padding: 0;
        height: 3.14rem;
        display: flex;
        align-items: center;
        line-height: 1.57rem;

        .nav-item {
            font-size: 1rem;
        }

        .navbar-icon {
            width: 2.85rem;
            height: 2.85rem;
            margin-right: 0.8rem;
        }
    }

}

.sidebar {

    width: 9.2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,.125);

    .sidebar-top {
        margin-bottom: 16px;

        .navbar-title {
            font-size: 1rem;
            line-height: 20px;
        }
    }

    .navbar{
        box-shadow: 0 1rem 2rem rgba(0,0,0,.25);
    }

    .slidebar-menu{

        scrollbar-width: none; /* firefox */
        -ms-overflow-style: none; /* IE 10+ */

        &::-webkit-scrollbar {
            width: 0 !important
        }

        .left-menu {

            a {
                text-decoration: none;
                i {
                    width: 1rem;
                    margin-right: 0.4rem;
                }

                &:hover, &.hover {
                    background-color: var(--dark) !important;
                    border-color: var(--dark);
                    color: var(--light) !important;
                }
            }

            .list-group {

                &:first-child {
                    border-top: none;
                }

                border-top: 1px dashed var(--secondary);

                .list-group-item {

                    border-radius: 0;
                    padding: 0.6rem 0.6rem 0.6rem 2.4rem;

                    &.active {
                        z-index: 2;
                        color: var(--light) !important;
                        background-color: var(--dark) !important;
                        border-color: var(--dark);
                    }

                    &:hover, &.hover {
                        background-color: var(--dark) !important;
                        border-color: var(--dark);
                        color: var(--light) !important;
                    }

                }
            }

        }
    }

    &.collapsed {
        width: 3.4rem;
        min-width: 3.4rem;

        .sidebar-top {

            .navbar-icon {
                width: 2.5rem;
                height: 2.5rem;
                margin-right: 0.8rem;
            }

            .navbar-title {
                display: none;
            }
        }

        .slidebar-menu{

            .left-menu {
                position: relative;

                a {
                    span {
                        display: none;
                    }
                }

                .list-group {

                    display: none;

                }

                &:hover, &.hover {

                    overflow: visible !important;

                    .collapse {
                        display: block;
                        position: absolute;
                        top: 0.2rem;
                        left: 3.4rem;
                        width: 10rem;
                        margin-left: -1px;
                        box-shadow: 0 0 5px #000;
                        z-index: 1;

                        .list-group {
                            display: block;

                            .list-group-item {
                                padding-left: 0.6rem;
                            }
                        }

                    }
                }
            }
        }
    }

}

.sidebar-toggle {
    color: #666;
    font-size: 1.2rem;
    margin: 0 0.8rem;
    cursor: pointer;
}


.wrapper {
    flex-grow: 1;
    width: 70%;
    background: #FEFEFE;
}

.wrapper .navbar {
    box-shadow: 0.5rem 0.25rem 2rem rgba(0,0,0,.25);
}

.wrapper .main {

}

label.preview{
    width: 60px;
    height: 30px;
    line-height: 20px;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 3px;
    font-size: 30px;
    color: #666;
    padding: 0;
    background-size: cover;
    background-position: center;

    input{
        display: none;
    }

    &.avatar {
        width: 100px;
        height: 100px;
        line-height: 100px;
    }

    &.banner {
        width: 400px;
        height: 200px;
        line-height: 200px;
    }

    &.thumb {
        width: 150px;
        height: 100px;
        line-height: 100px;
    }

}


.form-control label{
    margin-bottom: 0;
}

.form-control .custom-control {
    min-height: auto;
}

.custom-control-input {
    display: none;
}

.btn {

    .focus {
        box-shadow: none;
    }

    &:focus {
        box-shadow: none;
    }
}

/*链接按钮*/
.link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    padding: .375rem .75rem;
}
.link.link-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
}
.link:hover {
    opacity: 0.6;
    text-decoration: none;
}
.link.disabled,
.link:disabled {
    color: #8d8d8d;
}
.link.link-primary {
    color: #007bff;
}
.link.link-primary:not([href]):hover {
    color: #007bff;
}
.link.link-primary:not(:disabled):not(.disabled):focus,
.link.link-primary:not(:disabled):not(.disabled):active,
.link.link-primary:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-secondary {
    color: #6c757d;
}
.link.link-secondary:not([href]):hover {
    color: #6c757d;
}
.link.link-secondary:not(:disabled):not(.disabled):focus,
.link.link-secondary:not(:disabled):not(.disabled):active,
.link.link-secondary:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-success {
    color: #28a745;
}
.link.link-success:not([href]):hover {
    color: #28a745;
}
.link.link-success:not(:disabled):not(.disabled):focus,
.link.link-success:not(:disabled):not(.disabled):active,
.link.link-success:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-info {
    color: #17a2b8;
}
.link.link-info:not([href]):hover {
    color: #17a2b8;
}
.link.link-info:not(:disabled):not(.disabled):focus,
.link.link-info:not(:disabled):not(.disabled):active,
.link.link-info:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-warning {
    color: #ffc107;
}
.link.link-warning:not([href]):hover {
    color: #ffc107;
}
.link.link-warning:not(:disabled):not(.disabled):focus,
.link.link-warning:not(:disabled):not(.disabled):active,
.link.link-warning:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-danger {
    color: #dc3545;
}
.link.link-danger:not([href]):hover {
    color: #dc3545;
}
.link.link-danger:not(:disabled):not(.disabled):focus,
.link.link-danger:not(:disabled):not(.disabled):active,
.link.link-danger:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-light {
    color: #f8f9fa;
}
.link.link-light:not([href]):hover {
    color: #f8f9fa;
}
.link.link-light:not(:disabled):not(.disabled):focus,
.link.link-light:not(:disabled):not(.disabled):active,
.link.link-light:not(:disabled):not(.disabled).active {
    opacity: 1;
}
.link.link-dark {
    color: #343a40;
}
.link.link-dark:not([href]):hover {
    color: #343a40;
}
.link.link-dark:not(:disabled):not(.disabled):focus,
.link.link-dark:not(:disabled):not(.disabled):active,
.link.link-dark:not(:disabled):not(.disabled).active {
    opacity: 1;
}

/* 表格 */
.table th label{
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.table thead th.table-col-last {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.table tbody tr td .btn {
    margin-left: 0.5rem;
    margin-bottom: 0.2rem;

    &:first-child {
        margin-left: 0;
    }
}
.table tbody tr td .link {
    margin-left: 0.5rem;
    margin-bottom: 0.2rem;

    &:first-child {
        margin-left: 0;
    }
}
.table tbody tr td .link {
    margin-left: 0.5rem;
    margin-bottom: 0.2rem;
}
.table tbody tr td.table-col-last {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.table .table-col-id {
    min-width: 5rem;
}
.table .table-col-username {
    min-width: 10rem;
}
.table .table-col-datetime {
    min-width: 10rem;
}
.table .table-col-title {
    min-width: 12rem;
}
.table .table-col-comment {
    min-width: 20rem;
}
.table .table-col-20 {
    min-width: 20rem;
}
.table .table-col-18 {
    min-width: 18rem;
}
.table .table-col-16 {
    min-width: 16rem;
}
.table .table-col-14 {
    min-width: 14rem;
}
.table .table-col-12 {
    min-width: 12rem;
}
.table .table-col-10 {
    min-width: 10rem;
}
.table .table-col-8 {
    min-width: 8rem;
}
.table .table-col-6 {
    min-width: 6rem;
}
.table .table-col-4 {
    min-width: 4rem;
}

.page{
    padding-bottom: 100px;
}

footer{
    position: fixed;
    bottom: 0;
    width: 100%;
}

.nav {

}

.nav-pills .nav-link{
    color: #000;
}

.nav-tabs .nav-link{
    color: #000;
}

.nav-tabs .nav-link.active{
    background: #007bff;
    color: var(--light);
}

.pagination {

    .page-count {
        display: flex;
        align-items: center;
        margin-left: 1rem;
    }

}

.click{
    cursor: pointer;
}

.clip{
    cursor: pointer;
}